package jscinttools.scint.emissionspectrum;

import hep.aida.IDataPointSet;

import jhplot.P1D;
import jhplot.P0D;

/**
 *  Main Interface for Energy Scale Convertion
 *
 *@author     Marc-Antoine Verdier
 *@created    14 avril 2011
 */
public interface EnergyScaleConverter
{

	/**
	 *  Convert energy scale
	 *
	 *@param  energy  The energy double array
	 *@return         The converted energy array
	 */
	public double[] convertEnergyScale(double[] energy);


	/**
	 *  Convert energy scale
	 *
	 *@param  energy  The energy P0D array
	 *@return         The converted energy array
	 */
	public P0D convertEnergyScale(P0D energy);


	/**
	 *  Convert energy scale
	 *
	 *@param  spectrum  The P1D spectrum
	 *@return           The converted energy spectrum
	 */
	public P1D convertEnergyScale(P1D spectrum);


	/**
	 *  Convert energy scale
	 *
	 *@param  spectrum  The IDataPointSet spectrum
	 *@return           The converted energy spectrum
	 */
	public IDataPointSet convertEnergyScale(IDataPointSet spectrum);
}

